<% provide(:title, 'Sign up') %>
<h4>注册</h4>

<div class="row">
  <div class="col-md-6 col-md-offset-3">
    <%= form_for(@user) do |f| %>
      <%= render 'shared/error_messages' %>

      <%= f.label :姓名 %>
      <%= f.text_field :name, class: 'form-control' %>

      <%= f.label :邮箱 %>
      <%= f.email_field :email, class: 'form-control' %>

      <%= f.label :密码 %>
      <%= f.password_field :password, class: 'form-control' %>

      <%= f.label :password_confirmation, "确认密码" %>
      <%= f.password_field :password_confirmation, class: 'form-control' %>

      <%= f.submit "创建我的账号", class: "btn btn-primary" %>
    <% end %>
  </div>
</div>
